package cn.edu.lcu.cs.designpattern.singleton;

import cn.edu.lcu.cs.designpattern.visitor.score.Student;
import org.junit.jupiter.api.Test;

/**
 * @description: 经典实例化操作演示
 * @author: ling
 * @since: 2021-08-18 10:23
 **/
public class ClassicInstantiationDemo {

    @Test
    void create() {
        // 构造方法公开，每次调用创建一个实例，系统中会有许许多多此类的实例
        Student stu1 = new Student();
        Student stu2 = new Student();
        Student 小强 = new Student("小强", "202013123456");
    }
}
